package com.lib.base.ui.dialog

import android.content.Context
import androidx.core.content.ContextCompat
import com.lib.base.R
import com.lib.base.databinding.DialogTipIvText1Binding

object DialogUtil {
    fun showLoginDialog(context: Context): DialogHelper {
        val mDialogHelper = DialogHelper(context).setCancelable(false)
            .setView(R.layout.dialog_tip_iv_text_1) { view, _ ->
                DialogTipIvText1Binding.bind(view).apply {
                    progressbar.indeterminateDrawable =
                        ContextCompat.getDrawable(context, R.drawable.anim_common_loading_1)
                    textView.text = "登录中…"
                }
            }.show()
        return mDialogHelper
    }
}